<html>
<title>EveryBody</title>
<body>
<div>
	<input type="submit" value="Map" id="Map"  name="Map" style="width:75px;height:25px" onclick="window.location='/'"/>
	<input type="submit" value="Friends" id="Friends"  name="Friends" style="width:75px;height:25px" onclick="window.location='/friends/'"/>
	<input type="submit" value="Inbox" id="Inbox" name="Inbox" style="width:75px;height:25px" onclick="window.location='/inbox/'"/>
	<input type="submit" value="Everybody" id="Everybody"  name="Everybody" style="width:75px;height:25px" onclick="window.location='/everybody/'"/>
	<input type="submit" value="Logout" id="Logout"  name="Logout" style="width:75px;height:25px" onclick="window.location='/logout/'"/>
</div>
{% if error_message %}
<p><strong>{{error_message}}</strong></p>
{% endif %}

{% if source %}
<p>{{ source }}@{{ source.location }}</p>
{% endif %}

<p><b>Users</b></p>
{% if users %}
<form method="post" action="/add" >{% csrf_token %}
<table cellspacing=10>
{% for user in users %}
<tr>
{% if user != sessionUser %}
<td>
{% if user in friends %}
<input type="checkbox" value="{{ user.id }}" name="{{ user }}" disabled="disabled" checked="checked" >{{ user }}</input>
{% else %}
<input type="checkbox" value="{{ user.id }}" name="{{ user }}">{{ user }}</input>
{% endif %}
</td>
<td>
{% if user.status %}
    <img src="../media/greendot.jpg" style="width:10px;height:10px"/>
    {% endif %}
<td>
{% endif %}

</tr>
{% endfor %}
</table>
</br>
<input type="submit" value="Add Friends" />
</form>
{% endif %}
<font size="1pt">logged in as {{ sessionUser }} </font>
<script type="text/javascript">
</script>

</body>
</html>
